package cn.wolfcode.luowowo.search.service;

import cn.wolfcode.luowowo.search.query.SearchQueryObject;
import cn.wolfcode.luowowo.search.template.StrategyTemplate;
import cn.wolfcode.luowowo.search.vo.StatsResult;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface IStrategySearchService {
    void save(StrategyTemplate template);

    List<StatsResult> groupCondition(String id, String name, int condition);

    List<StatsResult> listCondition(int condition);

    /**
     * 高级查询
     *
     * @param qo
     * @return
     */
    Page<StrategyTemplate> query(SearchQueryObject qo);


    List<Map<String, Object>> themeCommend();


    List<StrategyTemplate> listByDestName(String keyword);
}
